package com.example.demo.service;

import com.example.demo.dto.TouristListDTO;
import com.example.demo.entity.Attraction;
import com.example.demo.entity.RecordCount;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @program: demo
 * @description:
 * @author: Lelouch
 * @create: 2024-09-04 15:42
 **/
public interface AttractionService {
    PageInfo<Attraction> list();

    PageInfo<Attraction> listByParams(Integer currentPage, Integer pageSize);

    int addAttraction(Attraction attraction);

    boolean changeAttraction(Attraction attraction);

    Attraction getAttractionById(Integer id);

    boolean deleteAttractionById(Integer id);

    PageInfo<RecordCount> touristList(TouristListDTO touristListDTO);

    Integer selectByAttractionName(String name);
}
